package com.hjq.demo.yuliao.activity

import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.gyf.immersionbar.ImmersionBar
import com.hjq.demo.R
import com.hjq.demo.app.vb.AppVbActivity
import com.hjq.demo.databinding.ActivityAboutUsBinding
import com.hjq.demo.databinding.ActivityLoginMyBinding

class LoginMyActivity : AppVbActivity<ActivityLoginMyBinding>() {

    companion object {

        private const val INTENT_KEY_INFO: String = "info"

        fun start(context: Context, info: String) {
            val intent = Intent(context, LoginMyActivity::class.java)
            intent.putExtra(INTENT_KEY_INFO, info)
            context.startActivity(intent)
        }
    }

    override fun initView() {
        ImmersionBar.setTitleBar(this, binding.tbTitle)

        setOnClickListener(binding.btnPswLogin, binding.btnCodeLogin,binding.btnRegist)
    }

    override fun initData() {

    }

    override fun onClick(view: View) {
        super.onClick(view)
        if (view == binding.btnPswLogin) {
            LoginUsePswActivity.start(this, "", "")
        } else if (view == binding.btnCodeLogin) {
            LoginUseCodeActivity.start(this, "", "")
        }else if (view==binding.btnRegist){
            RegistMyActivity.start(this,"","")
        }
    }
}